{namespace vh=In2code\Powermail\ViewHelpers}

<div id="powermail_fieldwrap_{field.uid}" class="form-group col-md-12 powermail_fieldwrap powermail_fieldwrap_check powermail_fieldwrap_{field.uid} {field.css}">
    <label class="control-label" title="{field.description}">
        <vh:string.RawAndRemoveXss>{field.title}</vh:string.RawAndRemoveXss>
        <f:if condition="{field.mandatory}"><span class="mandatory">*</span></f:if>
    </label>

    <div class="powermail_check_outer {vh:Validation.ErrorClass(field:field, class:'powermail_field_error')}">
        <f:for each="{field.modifiedSettings}" as="setting" iteration="index">
            <div class="powermail_check_inner powermail_check_inner_{index.cycle}">
                <label for="powermail_field_{field.marker}_{index.cycle}" class="checkbox-inline">
                    <f:form.checkbox
                            property="{field.marker}."
                            value="{setting.value}"
                            checked="{vh:Misc.PrefillField(field:field, mail:mail, cycle:index.cycle)}"
                            id="powermail_field_{field.marker}_{index.cycle}"
                            additionalAttributes="{vh:Validation.ValidationDataAttribute(field:field, iteration:index)}"
                            class="powermail_checkbox powermail_checkbox_{field.uid}"/>
                    <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>
                </label>
            </div>
        </f:for>

        <div class="powermail_field_error_container powermail_field_error_container_{field.marker}"></div>
    </div>
</div>
